package dkzcm.club.article.application.convert;


import dkzcm.club.article.application.dto.ArticleCategoryDTO;
import dkzcm.club.article.domain.entity.ArticleCategoryBO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @desc:
 * @author: xk
 * @version: 1.0
 * Create by 2024/11/24 13:54
 */

@Mapper
public interface ArticleCategoryDTOConverter {
    ArticleCategoryDTOConverter INSTANCE = Mappers.getMapper(ArticleCategoryDTOConverter.class);

    ArticleCategoryBO convertDtoToCategoryBO(ArticleCategoryDTO articleCategoryDTO);

    List<ArticleCategoryDTO> convertCategoryBOsToDTOs(List<ArticleCategoryBO> articleCategoryBOs);
}
